from django.urls import path


from . import views

app_name = 'sensor_monitor'
urlpatterns = [
    path('', views.index, name='index'),
    path('apis/login', views.login, name='login'),
    path('apis/<str:deviceNumber>/updateData', views.updateData, name='updateData'),
    path('apis/updateDevices', views.updateDevices, name='updateDevices'),
    path('apis/getDevices', views.getDevices, name='getDevices'),
    path('apis/useDemoData', views.periUpdateUseDemo, name='useDemoData'),
    path('apis/useFactData', views.periUpdateUseFact, name='useFactData'),
    path('apis/periUpdate/use', views.periUpdateUse, name='periUpdateUse'),
    path('apis/<str:deviceNumber>/getData', views.getData, name='getData'),
    path('apis/<str:deviceNumber>/periUpdate/start', views.periUpdateStart, name='periUpdateStart'),
    path('apis/<str:deviceNumber>/periUpdate/stop', views.periUpdateStop, name='periUpdateStop'),
    path('apis/<str:deviceNumber>/periUpdate/what', views.getPeriUpdateStatus, name='getPeriUpdateStatus'),
    path('apis/<str:deviceNumber>/generateDemoData', views.generateDemoData, name='generateDemoData')
]
